package top.continew.admin.req;

import cn.shengchao.examstar.rpc.distribute.req.DistributeJmsYgBatchInviteChangeReq;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @program: examstar-manger-api
 * @description: 员工切换请求
 * @author: Xiong weiqiang
 * @create: 2025-05-13 19:58
 */
@Data
public class DistributeJmsYgBatchInviteChangeRto {
    @NotNull(message = "被替换员工用户不能为空")
    private Long userId;
    @NotNull(message = "替代员工用户不能为空")
    private Long replaceUserId;
    public DistributeJmsYgBatchInviteChangeReq toReq(){
        DistributeJmsYgBatchInviteChangeReq distributeJmsYgBatchInviteChangeReq = new DistributeJmsYgBatchInviteChangeReq();
        distributeJmsYgBatchInviteChangeReq.setUserId(this.getUserId());
        distributeJmsYgBatchInviteChangeReq.setReplaceUserId(this.getReplaceUserId());
        return distributeJmsYgBatchInviteChangeReq;
    }
}